﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="WpfApplication1.MainWindow"
        Title="openPDFspeedreader"
        Icon="icon.ico"
        SizeToContent="WidthAndHeight"
        PreviewKeyDown="Window_PreviewKeyDown"
        Loaded="Window_Loaded">
    <Grid Width="500">
        <StackPanel HorizontalAlignment="Center" Width="500">
            <Button x:Name="openButton" Click="openButton_Click" Height="30" Content="Open"/>

            <StackPanel x:Name="XStackPanel" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center"  Width="Auto" Height="150">
                <Label Width="Auto" x:Name="label0"  TabIndex="1"  VerticalAlignment="Center" HorizontalContentAlignment="Center"></Label>
            </StackPanel>

            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <ComboBox x:Name="fontComboBox" ToolTip="Font" Margin="0,0,10,0" Loaded="fontComboBox_Loaded" Width="Auto" ItemsSource="{Binding Source={x:Static Fonts.SystemFontFamilies}}" SelectionChanged="fontComboBox_SelectionChanged"/>
                <Label x:Name="fontsizelabel" Width="Auto"/>
                <Slider x:Name="FontSizeSlider" Loaded="FontSizeSlider_Loaded" ValueChanged="FontSizeSlider_ValueChanged" ToolTip="Font Size"/>
                <Label x:Name="speedlabel" Width="Auto"/>
                <Slider x:Name="SpeedSlider" Width="200" Loaded="SpeedSlider_Loaded" ToolTip="Speed" ValueChanged="SpeedSlider_ValueChanged"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Button x:Name="Start" Height="30" Width="100" ToolTip="Start reading" Click="Start_Click" Content="Start"/>
                <Button x:Name="Stop" Height="30" Width="100" ToolTip="Stop/Pause" Click="Stop_Click" Content="Stop"/>
                <Button x:Name="ClearMemory" Click="ClearMemory_Click" Content="Clear Memory" />
            </StackPanel>
            <StackPanel>
                <ScrollViewer>
                    <TextBox x:Name="textbox1" AcceptsReturn="False" KeyDown="textbox1_KeyDown" Height="32" ToolTip="Type a word and Press Count Syllable to find out how many syllables it has"/>
                </ScrollViewer>
                <StackPanel Orientation="Horizontal">
                    <ComboBox Width="100" x:Name="PagesComboBox" ToolTip="Page number" Loaded="PagesComboBox_Loaded" SelectionChanged="PagesComboBox_SelectionChanged"/>
                    <Label x:Name="openedfilelabel" ToolTip="shows which file is open" Content="None"/>
                </StackPanel>
                <Button Height="200" Click="Button_Click" Content="About"/>
                <Button x:Name="countSyllableButton" Click="countSyllableButton_Click" Content="Count Syllable"/>

            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
